﻿namespace EFS.RC.CC.Messages.Communicator.Lync.Context
{
	/// Used for the statuses message list
	public class HuntGroupInvite : EFS.RC.CC.Messages.Message
	{
		/// Public constructor (used especially for deserialization)
		public HuntGroupInvite()
			: base()
		{
		}

		/// Property Name: Get, Set
		public System.String Name { get; set; }

		/// Property Sip: Get, Set
		public System.String Sip{ get; set; }


		/// Serialize
		public override void Serialize(EFS.Common.Serialization.XmlWriter xmlWriter)
		{
			// write
			xmlWriter.Write("Name", Name); 
			xmlWriter.Write("Sip", Sip);
		}

		/// Deserialize
		public override void Deserialize(EFS.Common.Serialization.XmlReader xmlReader)
		{
			// read
			Name = xmlReader.Read("Name");
			Sip = xmlReader.Read("Sip");
		}

		/// <summary>
		/// ToString
		/// </summary>
		/// <returns></returns>
		public override string ToString()
		{
			return Name;
		}
	}
}